#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>

int main()
{
	int n;
	int ele;
	int mut = 1;
	int i = 1;
	while (scanf("%d", &n) != EOF)
	{
		for (i = 1; i <= n; i++)
		{
			scanf("%d", &ele);
			if (ele % 2 != 0)
				mut *= ele;
		}
		printf("%d\n", mut);
		mut = 1;
	}

	return 0;
}